package com.villaday.idf.adapter3;

import android.content.Context;

import com.villaday.idf.R;
import com.villaday.idf.custom.bannerUtil.AbsRecyclerViewAdapter;
import com.villaday.idf.model3.SleepEntity;

public class SleepAdapter extends AbsRecyclerViewAdapter<SleepEntity.BodyBean.PreviousListBean> {

    public SleepAdapter(Context context) {
        super(context, R.layout.recycle_sleep);
    }

    @Override
    public void onBindHolder(RecyclerViewHolder holder, SleepEntity.BodyBean.PreviousListBean d, int position) {
//        holder.getView(R.id.tv_sleep_top_title);
        holder.bindTextView(R.id.tv_sleep_top_title, "第" + d.getPhaseNumber() + "期免费住：")
                .bindTextView(R.id.tv_sleep_top_content, d.getProduct().getName())
                .bindTextView(R.id.tv_sleep_title, "中奖用户：" + d.getWinner().getMobile() + "," + d.getWinner().getNickName() + ",恭喜");
    }
}
